/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.cnjson.db.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author cgli
 * @version 2016-06-09
 */
public class SysAppSetting extends DataEntity<SysAppSetting> {

	private static final long serialVersionUID = 1L;
	private Integer code;		// 内部代码v1.01=&gt;101
	private String version;		// 版本
	private String downloadUrl;		// 下载更新url
	private Integer type;//分类

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public SysAppSetting() {
		super();
	}

	public SysAppSetting(String id){
		super(id);
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	@Length(min=1, max=20, message="版本长度必须介于 1 和 20 之间")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@Length(min=0, max=500, message="下载更新url长度必须介于 0 和 500 之间")
	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

}